<%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2020/11/12
  Time: 11:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Java Web考试平台</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/layuiadmin/layui/css/layui.css" media="all">
    <script src="${pageContext.request.contextPath}/resources/layuiadmin/layui/layui.js"></script>
    <style>

        .window {

            width: 400px;

            position: absolute;

            margin-left: -420px;

            margin-top: 10px;

            top: 10%;

            left: 58%;

            display: block;

            z-index: 2000;

            background: #fff;

            padding: 100px;

        }


    </style>
</head>

<body style="background: #f1f1f1;">

<div class="window">

    <form class="layui-form" action="HandlerServlet" method="post" .>
        <h1>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Java Web考试平台</h1>
        <div class="layui-form-item" style="margin-right: 100px;margin-top: 20px;">

            <label class="layui-form-label">用户名：</label>

            <div class="layui-input-block">

                <input type="text" name="username" required lay-verify="required" placeholder="请输入用户名"
                       autocomplete="off" class="layui-input">

            </div>

        </div>

        <div class="layui-form-item">

            <label class="layui-form-label">密&nbsp;&nbsp;&nbsp;&nbsp;码：</label>

            <div class="layui-input-inline">

                <input type="password" name="password" required lay-verify="required" placeholder="请输入密码"
                       autocomplete="off" class="layui-input">

            </div>

        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">


                <button class="layui-btn" lay-submformRegisterit lay-filter="">立即提交</button>
               <%-- <div class="layui-text"> 没有账号？<a href="ViewRegisterServlet">立即注册</a></div>--%>

            </div>
        </div>

    </form>

</div>
<script type="text/javascript">
    function register() {
        window.location.href = "ViewRegisterServlet";
    }
</script>

</body>
</html>
